package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(QueryObject qo);

    int getNextSequenceByCatalogId(Long id);

    StrategyDetail getContentById(Long contentById);


    //搜索计数
    int selectForCount(QueryObject qo);
    //搜索
    List<StrategyDetail> query(QueryObject qo);
    //点击浏览量
    void updateBrowseNum(StrategyDetail record);
}